package com.kt.utils;

import java.util.Random;

/**
 * 生成唯一id
 *
 * 时间戳+随机数
 */
public class Keyutil {
    public static synchronized String genUniqueKey() {
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
            //时间戳
        return System.currentTimeMillis() + String.valueOf(number);
    }
}
